package cn.lookup.mapper;

import cn.lookup.domain.Account;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
public interface AccountMapper {
    @Insert("insert into student(id,name,money) values(#{id},#{name},#{money})")
    public abstract void addAccount(Account account);
    @Select("select * from student")
    public abstract List<Account> queryAllAccount();
}
